import request from '@/utils/request'

// 查询手术间维护列表 (分页)
export function selectPageSurgeryRoom(query) {
  return request({
    url: '/business/surgeryRoom/selectPage',
    method: 'get',
    params: query
  })
}

// 查询手术间维护列表 (不分页)
export function listSurgeryRoom(query) {
  return request({
    url: '/business/surgeryRoom/list',
    method: 'get',
    params: query
  })
}

// 查询手术间维护详细
export function getSurgeryRoom(surgeryRoomId) {
  return request({
    url: '/business/surgeryRoom/' + surgeryRoomId,
    method: 'get'
  })
}

// 新增手术间维护
export function addSurgeryRoom(data) {
  return request({
    url: '/business/surgeryRoom',
    method: 'post',
    data: data
  })
}

// 修改手术间维护
export function updateSurgeryRoom(data) {
  return request({
    url: '/business/surgeryRoom',
    method: 'put',
    data: data
  })
}

// 删除手术间维护
export function delSurgeryRoom(surgeryRoomId) {
  return request({
    url: '/business/surgeryRoom/' + surgeryRoomId,
    method: 'delete'
  })
}
